# coding=utf=8
from django.db import models


class ReportedSms(models.Model):
    body = models.CharField(max_length=255, verbose_name=u'短信内容')
    address = models.CharField(max_length=255, verbose_name=u'发件人地址')
    device = models.CharField(max_length=255, verbose_name=u'设备特征码')
    create_time = models.DateTimeField(auto_now_add=True)
    modify_time = models.DateTimeField(auto_now=True)

    class Meta:
        verbose_name = u'被举报短信’'


class Blacklist(models.Model):
    address = models.CharField(max_length=255, verbose_name=u'发件人地址')
    freq = models.IntegerField(verbose_name=u'被举报次数')
    create_time = models.DateTimeField(auto_now_add=True)
    modify_time = models.DateTimeField(auto_now=True)

    class Meta:
        verbose_name = u'黑名单号码’'